package com.lsh.payment.api.model.refund;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.codehaus.jackson.annotate.JsonIgnoreProperties;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.Digits;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * Project Name: lsh-payment
 *
 * @author peter
 * @date 16/11/8
 * 北京链商电子商务有限公司
 * Package
 * desc:
 */
@JsonIgnoreProperties(ignoreUnknown = true)
@Setter
@Getter
@NoArgsConstructor
public class RefundRequest implements Serializable{

    @NotBlank
    private String refund_trade_id;

//    @NotBlank
    private String pay_payment_no;

    @NotNull
    private Integer refund_type;

    @NotBlank
    @Digits(integer = 8,fraction = 2,message = "支付金额不合法,小数点后最多两位,且大于0,例如(12.25,0.88)")
    private String refund_fee;

    @NotBlank
    private String notify_url;

    private String notify_ext;

    private String uid;

    @NotNull
    private Integer system;

    private Long venderId;
}
